//书架
package book;

import java.util.LinkedList;
import java.util.List;

public class BookList {
    private Book head = new Book();//链表头节点
    private int num;//存放书的数量
    List<Book> bookList = new LinkedList<>();
    public BookList() {
        Book book = new Book("A01","三国演义","罗贯中",30,"20220531");//先放一本书
        head.next=book;//头插法
        this.num=1;
    }
    public Book getHead() {
        return head;
    }
    public int getNum() {
        return num;
    }
}
